xen: if mapping GSIs we run out of pirq < nr_irqs_gsi, use the others
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 13 Sep 2011 09:32:24 +0000 (10:32 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 13 Sep 2011 09:32:24 +0000 (10:32 +0100)
commit2569814496e2c7e61a06d9ddc48defd28759dd96
treede3d7864a3bf0694d821d712b59c7115dc67075d
parentcee3fd7bb8f237a8afcedd7e8e29985cbcf2352b
xen: if mapping GSIs we run out of pirq < nr_irqs_gsi, use the others

PV on HVM guests can have more GSIs than the host, in that case we
could run out of pirq < nr_irqs_gsi. When that happens use pirq >=
nr_irqs_gsi rather than returning an error.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: Benjamin Schweikert <b.schweikert@googlemail.com>
xen/arch/x86/irq.c